[Setup]
AppName=Image Presenter Project
AppVersion=1.0
DefaultDirName={pf}\Image Presenter Project

[Files]
Source: "ImageAnimator.dll"; Flags: dontcopy
Source: "Resources\*.*"; Flags: dontcopy

[Code]
const
  mrError = -1;

function InitializeIntro(WindowOwner: HWND; SourcePath: string;
  FrameTime: Integer): Integer;
  external 'IPInitializeIntro@files:imageanimator.dll stdcall';
function InitializeAnimation(WindowOwner: HWND; SourcePath: string;
  FrameTime: Integer; RepeatCount: Integer): Integer;
  external 'IPInitializeAnimation@files:imageanimator.dll stdcall';

procedure InitializeWizard;
begin
  ExtractTemporaryFile('001_Image.png');  
  ExtractTemporaryFile('002_Image.png');
  ExtractTemporaryFile('003_Image.png');
  ExtractTemporaryFile('004_Image.png');
  InitializeAnimation(MainForm.Handle, ExpandConstant('{tmp}\'), 90, 25);
end;


